FROM ubuntu:16.04

COPY ./docker/sources.list /etc/apt/sources.list
# 设置PATH变量
COPY ./.profile /root/.profile
COPY ./.profile /etc/bash.bashrc
COPY ./.profile /etc/bashrc
RUN apt-get update
RUN apt-get install -y g++
RUN apt-get install -y vim
#ubuntu-make

RUN mkdir /opt/demo
COPY ./docker/libs /opt/demo/libs
RUN ln -s /opt/demo/libs/common/ffmpeg/extend/ffmpeg  /usr/bin/ffmpeg
COPY ./hi_rtp_demo /opt/demo/hi_rtp_demo
RUN ln -s /opt/demo/hi_rtp_demo /usr/bin/hi_rtp_demo

COPY ./docker_run.sh /opt/demo/docker_run.sh

RUN chmod -R 777 /opt/*
WORKDIR /opt/demo

# run 
CMD ["/opt/demo/docker_run.sh"]

